package com.zx.controller.pageSkip.success;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author sunkai
 * @date 2022/8/25 0025 21:41
 * @mood zhou xun
 */
@Controller()
@RequestMapping("/success/skip")
public class SuccessSkip {
    @RequestMapping("/success/cart/{id}")
    public String gotosuccessCart(@PathVariable Integer id, Model model){
        model.addAttribute("id",id);
        return "success-cart";
    }
}
